//
//  RETProductSkuCellViewModel.h
//  Retail
//
//  Created by ChenJie on 4/1/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OATableConfigHeader.h"
#import "RETSkuItemViewModel.h"

@interface RETProductSkuCellViewModel : NSObject
<
OACellViewModelProtocol
>

@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong) NSMutableArray<RETSkuItemViewModel *> *items;
@property (nonatomic, assign) NSInteger selectedItemIndex;
@property (nonatomic, copy) void (^itemDidSelectAtIndex)(RETProductSkuCellViewModel *cellViewModel, NSInteger itemIndex);

//- (void)skuItemViewModelDidSelect:(RETSkuItemViewModel *)itemViewModel;
- (NSInteger)itemIndexWithViewModel:(RETSkuItemViewModel *)itemViewModel;

@end

